<template>
  <div
    v-if="route.meta.loopType"
    class="flower-btn"
    :style="{
      backgroundImage: `url(${publicUrls + 'free/style5/flower-btn.png?imageView2/format/webp'})`,
    }"
  ></div> 
</template>

<script setup lang="ts">
import { publicUrls } from '@/utils/minxin';
import { useRoute, useRouter } from 'vue-router';
const route = useRoute();
</script>
  
<style scoped lang="less">
.flower-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  transform: translate(-50%, -50%);

  animation: flower 2s linear infinite;
  @keyframes flower {
    0% {
      opacity: 0;
    }
    40% {
      opacity: 100%;
    }
    80% {
      opacity: 100%;
    }
    100% {
      opacity: 0;
    }
  }
}
</style>